package com.anjubao.parking.municipal.user.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 用户余额变动记录
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@TableName("user_balance_record")
@ApiModel(value="UserBalanceRecord",description = "用户余额变动记录")
@Accessors(chain = true)
public class UserBalanceRecord extends BaseEntity<UserBalanceRecord>{

    @TableField(value="id")
    @ApiModelProperty(name="id",value = "主键ID，flowsnake算法，转成string")
    private Long id;

    @TableField(value="user_id")
    @ApiModelProperty(name="userId",value = "用户ID")
    private Long userId;

    @TableField(value="type")
    @ApiModelProperty(name="type",value = "1:充值 2:消费")
    private Integer type;

    @TableField(value="trade_order_id")
    @ApiModelProperty(name="tradeOrderId",value = "支付记录ID")
    private String tradeOrderId;

    @TableField(value="amount")
    @ApiModelProperty(name="amount",value = "金额")
    private Integer amount;

    @TableField(value="remark")
    @ApiModelProperty(name="remark",value = "说明")
    private String remark;


}